package com.feihong.activity.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.feihong.activity.entity.SensorDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
@DS("city")
public interface FeedingAreaMapper {

    List<Integer> selectAreaDataCodesCountByCity(String sheetName);

    Integer getMaxTaskIdByCity();

    void addPushTask(String taskName, String url);

    void addAuthentication(Integer taskId, String loginUrl);

    void addAuthUserName(String loginName, Integer taskId);

    void addAuthPassword(String loginPassword, Integer taskId);

    void addAuthPlatformId(String platformId, Integer taskId);

    void addRequestHeader(Integer taskId);

    void addPushRangeFieldRel(Integer taskId, Map<String, String> map);

    void addAll(Integer taskId, String sheetName);

    void addFieldReplace(List<SensorDTO> list);
}
